package test_package;

import junit.framework.Assert;
import org.testng.annotations.Test;

import java.util.ArrayList;
import java.util.Collections;

/**
 * Created by iryna on 3/15/14.
 */
public class test1 {


















   @Test
    public void test() {
     ArrayList<Integer> filenumbers_int = new ArrayList<Integer>();
     filenumbers_int.add(10);
     filenumbers_int.add(1);
     filenumbers_int.add(90);

     ArrayList<Integer> filenumbers = new ArrayList<Integer>();
     filenumbers.add(10);
     filenumbers.add(1);
     filenumbers.add(90);

     Collections.sort(filenumbers);


    //print sorted arraylist on natural order
     System.out.println("--------------------------------------------");
     System.out.println("Unsorted numbers from a file "+filenumbers_int);
     System.out.println("Sorted numbers from a file "+filenumbers);

        //
        Assert.assertEquals(filenumbers, filenumbers_int);



    }
}


